
             
/**
 * 
 *
 * @File name:  AddTFaAllocateAction.java   添加【资产调拨信息:T_FA_ALLOCATE】
 * @Create on:  2011-11-01 20:11:609
 * @Author   :  许福辉
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        
package com.boho.estates.usual.action;

            
import java.sql.Connection;

import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.exception.UserOperationException;
import cn.boho.framework.service.MessageService;

import com.boho.estates.po.TFaAllocatePO;
import com.boho.estates.usual.service.UsualService;

public class AddTFaAllocateAction extends ActionImp {
	private Connection con=null;
	@Override
	protected void doException(ActionContext atx, Exception ex) {
		if (!(ex instanceof UserOperationException)) {
			atx.setErrorContext("BOHO_COMMON_1001", MessageService.getMessage("BOHO_COMMON_1001"),"【资产调拨信息】", ex);
		}
	}
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		UsualService.addTFaAllocate(con,atx);
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		con = atx.getConection();
		return 1;
	}
}
